﻿using GalaSoft.MvvmLight.Messaging;




using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NicoView.ViewModel
{
    public abstract class NicoViewCommentListViewModel : NicoViewCommentListViewModelBase
    {


        public override void Loded()
        {
            if(!IsInDesignMode)
            {
                this.InternalApplication.Instance.LiveConnected += args =>
                {
                    Set(args.LiveService.MainCommentClient);
                    this.ConnectLive();

     
                };

                this.InternalApplication.Instance.Property.PropertyChanged += (s, e) =>
                {
                    this.Comments.Upgrade();
                };

  

            }

        }



    }
}
